package com.ruoyi.knowledge.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.ArrayList;
import java.util.List;

/**
 * 常见质量通病目录对象 quality_diseases_catalogue
 * 
 * @author ruoyi
 * @date 2024-07-14
 */
public class QualityDiseasesCatalogue extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 常见质量通病目录主键 */
    private Long catalogueId;

    /** 目录名称 */
    @Excel(name = "目录名称")
    private String catalogueName;

    /** 上级目录 */
    @Excel(name = "上级目录")
    private Long cataloguePid;

    /** 排序 */
    @Excel(name = "排序")
    private Long catalogueSort;

    /** 级别 */
    @Excel(name = "级别")
    private Long level;

    //子节点集合
    private List<?> children = new ArrayList<>();

    public void setCatalogueId(Long catalogueId) 
    {
        this.catalogueId = catalogueId;
    }

    public Long getCatalogueId() 
    {
        return catalogueId;
    }
    public void setCatalogueName(String catalogueName) 
    {
        this.catalogueName = catalogueName;
    }

    public String getCatalogueName() 
    {
        return catalogueName;
    }
    public void setCataloguePid(Long cataloguePid) 
    {
        this.cataloguePid = cataloguePid;
    }

    public Long getCataloguePid() 
    {
        return cataloguePid;
    }
    public void setCatalogueSort(Long catalogueSort) 
    {
        this.catalogueSort = catalogueSort;
    }

    public Long getCatalogueSort() 
    {
        return catalogueSort;
    }
    public void setLevel(Long level) 
    {
        this.level = level;
    }

    public Long getLevel() 
    {
        return level;
    }

    public List<?> getChildren() {
        return children;
    }

    public void setChildren(List<?> children) {
        this.children = children;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("catalogueId", getCatalogueId())
            .append("catalogueName", getCatalogueName())
            .append("cataloguePid", getCataloguePid())
            .append("catalogueSort", getCatalogueSort())
            .append("level", getLevel())
                .append("children", getChildren())
            .toString();
    }
}
